package org.southyin.securitysamples.service;

import org.southyin.securitysamples.mapper.RoleMapper;
import org.southyin.securitysamples.model.Role;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class RoleService {
    @Autowired
    RoleMapper roleMapper;

    public List<Role> listRoles() {
        return roleMapper.listRoles();
    }
}
